<template>
  <div>
    <mt-swipe :auto="4000">
      <mt-swipe-item v-for="item in banberlist" :key="item.id">
        <a target="_blank" :href="item.url">
          <img :src="item.img" alt :class="{ 'full': isfull }">
        </a>
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>

<script>
import { Toast } from "mint-ui";

export default {
  props: ['banberlist', 'isfull']
};
</script>

<style lang="scss" scoped>
.mint-swipe {
  height: 200px;
  text-align: center;
  .mint-swipe-item {
    img {
      // width: 100%;
      height: 100%;
    }
  }
}

.full{
  width: 100%;
}
</style>
